<?php
namespace app\common\lib;

class Time {
    public static function userLoginExpiresTime($type = 2) {
        $type = in_array($type, [1,2]) ? $type : 2;
        if ($type == 1) {
            $day = $type * 7;
        }elseif ($type == 2) {
            $day = $type * 30;
        }
        return $day * 24 * 3600;
    }
}